irrlib

irrlib Mercurial Source Tree


Root/Stable Version/1.2.7/IrrLibBase.cpp

/*
    Irrlicht Library Wrapper
    Created by:
        Nathan Adams
        Denzel Morris
    Copyright (C) 2007
 
    This software is licensed under the GNU/GPL.
    This software may not be used for commerical purposes.
*/
 
#include <iostream>
#include <irrlicht.h>
#include "IrrLibBase.h"
#include <strings.h>
#include <sstream>
 
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
 
using namespace std;
 
void IrrLibBase::SetDriver(IVideoDriver* driver) //can be overloaded
{
    this->driver = driver;
}
 
void IrrLibBase::SetSmgr(ISceneManager* smgr)
{
    this->smgr = smgr;
}
 
std::string IrrLibBase::int_to_string (int t)
{
    std::stringstream ss;
    ss << t;
    return ss.str();
}
 
std::string IrrLibBase::stringw_to_stdstring(irr::core::stringw sw)
{
    std::stringstream ss;
    ss << sw.c_str();
    return ss.str();
}
irr::core::stringw IrrLibBase::stdstring_to_stringw(std::string ss)
{
    stringw tmpw(ss.c_str());
    return tmpw;
}
 
void IrrLibBase::SetDevice(irr::IrrlichtDevice *device)
{
    this->device = device;
}
 
void IrrLibBase::init()
{
 
}
Source at commit tip created 11 years 4 months ago.
By Nathan Adams, Migrating from google code

Archive Download this file

Branches

Tags

Page rendered in 0.73887s using 11 queries.